<%@ page session="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<c:set var="clientes" value="${clientes}" />
<div id="area">
	<div class="content" id="work">
		<p>&nbsp;</p>
		<center>
			<form:form modelAttribute="pedido" action="iniciarPedido.htm"
				method="post">
				<table width="400" height="64" border="0">
					<tr>
						<td width="379"><h2>Iniciar Pedido para el Alquiler</h2>
						</td>
					</tr>
				</table>
				<table width="400" border="0">
					<tr>
						<td><form:label path="codigoPedido">ID del Pedido</form:label>
						</td>
						<td><form:input path="codigoPedido" />
						</td>
						<td><form:errors path="codigoPedido" />
						</td>
					</tr>
					<tr>
						<td width="117"><form:label path="fechaInicio">Fecha de inicio</form:label>
						</td>
						<td width="181"><form:input path="fechaInicio" />
						</td>
						<td width="88"><form:errors path="fechaInicio" />
						</td>
					</tr>
					<tr>
						<td>Cliente</td>
						<td><select name="codigoCliente" id="codigoCliente">
								<option value="Seleccione" selected>Seleccione</option>
								<c:forEach items="${clientes}" var="lista">
									<option value="<c:out value="${lista.codigo}" />">
										<c:out value="${lista.empresa}" />
									</option>
								</c:forEach>
						</select></td>
						<td width="88"></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td><label> <input type="submit" name="btnIniciar"
								id="btnIniciar" value="Iniciar" /> </label>
						</td>
						<td width="88"></td>
					</tr>
				</table>
				<p>&nbsp;</p>
				<p>&nbsp;</p>
			</form:form>
		</center>
	</div>
	<div class="sidenav" id="nave">
		<%@ include file="/WEB-INF/views/menu.jsp"%>
		<p>&nbsp;</p>
	</div>
</div>